set pylib=`python -c 'import distutils.util ; import sys ; print "%s-%d.%d" % (distutils.util.get_platform(), sys.version_info[0], sys.version_info[1])'`

if ( `uname` == 'Darwin' ) then
  if ( $?DYLD_LIBRARY_PATH == 1 ) then
    setenv DYLD_LIBRARY_PATH "../libpysl/.libs:${DYLD_LIBRARY_PATH}"
  else
    setenv DYLD_LIBRARY_PATH "../libpysl/.libs"
  endif
else
  if ( $?LD_LIBRARY_PATH == 1 ) then
    setenv LD_LIBRARY_PATH "../libpysl/.libs:${LD_LIBRARY_PATH}"
  else
    setenv LD_LIBRARY_PATH "../libpysl/.libs"
  endif
endif

if ( $?PYTHONPATH == 1 ) then
  setenv PYTHONPATH "../pymodule/build/lib.${pylib}:${PYTHONPATH}"
else
  setenv PYTHONPATH "../pymodule/build/lib.${pylib}"
endif

if ( $?SLANG_MODULE_PATH == 1 ) then
  setenv SLANG_MODULE_PATH "../slmodule/.libs:${SLANG_MODULE_PATH}"
else
  setenv SLANG_MODULE_PATH "../slmodule/.libs"
endif

if ( $?SLANG_SCRIPT_PATH == 1 ) then
  setenv SLANG_SCRIPT_PATH "../slmodule:${SLANG_SCRIPT_PATH}"
else
  setenv SLANG_SCRIPT_PATH "../slmodule"
endif

unset pylib
